/**
 * 
 */
package fr.cephb.j2ee.servlet;

import java.io.IOException;
import java.util.logging.Logger;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

/**
 * AbstractFilter
 *
 */
public abstract class AbstractFilter
	implements Filter
	{
	protected static final Logger LOG= Logger.getLogger("fr.cephb");
	private FilterConfig filterConfig=null;
	/* (non-Javadoc)
	 * @see javax.servlet.Filter#destroy()
	 */
	@Override
	public void destroy()
		{
		this.filterConfig=null;
		}

	public FilterConfig getFilterConfig()
		{
		return filterConfig;
		}
	
	
	/* (non-Javadoc)
	 * @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
	 */
	@Override
	public abstract void doFilter(ServletRequest arg0, ServletResponse arg1,
			FilterChain arg2) throws IOException, ServletException;

	/* (non-Javadoc)
	 * @see javax.servlet.Filter#init(javax.servlet.FilterConfig)
	 */
	@Override
	public void init(FilterConfig filterConfig) throws ServletException
		{
		this.filterConfig=filterConfig;
		}

	}
